package com.kebabeaters.nakebab.server.handler;

import com.gwtplatform.dispatch.server.ExecutionContext;
import com.gwtplatform.dispatch.server.actionhandler.ActionHandler;
import com.gwtplatform.dispatch.shared.ActionException;
import com.kebabeaters.nakebab.shared.action.GetRestaurantDetailsAction;
import com.kebabeaters.nakebab.shared.action.GetRestaurantDetailsAction.Result;
import com.kebabeaters.nakebab.shared.dto.structures.Restaurant;

public class GetRestaurantDetailsActionHandler implements
		ActionHandler<GetRestaurantDetailsAction, GetRestaurantDetailsAction.Result> {

	@Override
	public Result execute(GetRestaurantDetailsAction arg0, ExecutionContext arg1)
			throws ActionException {
		
		Result result = new Result();
		result.setEntry(new Restaurant());
		
		return result;
	}

	@Override
	public Class<GetRestaurantDetailsAction> getActionType() {
		return GetRestaurantDetailsAction.class;
	}

	@Override
	public void undo(GetRestaurantDetailsAction arg0, Result arg1,
			ExecutionContext arg2) throws ActionException {		
	}

}
